import { BrowserWindowConstructorOptions } from 'electron';
const path = require('path');
const { app } = require('electron');


const RESOURCES_PATH = app.isPackaged
? path.join(process.resourcesPath, 'assets')
: path.join(__dirname, '../../assets');

const getAssetPath = (...paths: string[]): string => {
  return path.join(RESOURCES_PATH, ...paths);
};

console.log('getAssetPath:', getAssetPath())

export default {
  browserWindow: {
		width: 1280,
    height: 960,
    // icon: getAssetPath('icon.png'),
    autoHideMenuBar: true, // 隐藏菜单栏，按alt显示
    // fullscreen: true, // 设置默认全屏
    // titleBarStyle: 'hidden', // 隐藏窗口栏
    minimizable: true
  } as BrowserWindowConstructorOptions,
};